'use strict';

// 封装log
const npmlog = require("npmlog")
npmlog.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : "info"; // 判断debug模式 
npmlog.heading  = "hetao"; // 修改前缀
npmlog.headingStyle = {}; 

npmlog.addLevel("success", 2000, { fg: "green", bold: true }); // 增加自定义命令

module.exports = npmlog;
